import request from '@/config/axios'

// 列表
export const getMsgPushList = (data) => {
  return request.get({
    url: '/service/message/page',
    params: data
  })
}

// 获取员工详情信息
export const getMsgPushDetail = (id) => {
  return request.get({
    url: '/service/message/get',
    params: { id }
  })
}


// 新增
export const addMsgPush = (data) => {
  return request.post({
    url: '/service/message/create',
    data,
  })
}

// 编辑
export const editMsgPush = (data) => {
  return request.put({
    url: '/service/message/update',
    data,
  })
}